<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:outputStylesheet library="css" name="default.css"/>
    <h:head>
        <title>Mantenimiento Contraseña</title>
    </h:head>
    <h:body>
        <h:form id="formAlu">
             #{ctrEntorno.resetPassword()}
            <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
              <h:panelGrid columns="2" id="matchGrid" cellpadding="5" >   
                   
                    <p:outputLabel for="pwd0" value="Password anterior:" styleClass="requiredLbl" />
                    <p:password id="pwd0" value="#{ctrEntorno.passwordAnt}"  label="PasswordAnt" required="true" >
                        <f:validateLength maximum="30" />
                    </p:password>
                     
                     
                     <p:outputLabel for="pwd1" value="Password 1:" styleClass="requiredLbl"/>
                    <p:password id="pwd1" value="#{ctrEntorno.password}" match="pwd2" label="Password 1" required="true" >
                        <f:validateLength maximum="30" />
                    </p:password>
 
                    <p:outputLabel for="pwd2" value="Password 2:" styleClass="requiredLbl"/>
                    <p:password id="pwd2" value="#{ctrEntorno.password}" label="Password 2" required="true" >
                        <f:validateLength maximum="30" />
                    </p:password>
                                    
                    <h:panelGroup/><h:panelGroup/>
                    <h:panelGroup/><h:panelGroup/>
                    <p:commandButton ajax="false" id="comando" value="Cambiar"  actionListener="#{ctrEntorno.cambiarPasswordAnt}" />
                       
                </h:panelGrid>

         </h:form>
    </h:body>
</html>

